from common.base import Base,By


class BuyerCenterPage(Base):

    buyer_center_my_order = (By.LINK_TEXT,'我的订单')
    buyer_center_my_integral = (By.LINK_TEXT,'我的积分')
    buyer_center_my_redpacket = (By.LINK_TEXT,'我的优惠券')


    def to_my_order(self):
        self.click(BuyerCenterPage.buyer_center_my_order)

    def to_my_integral(self):
        self.click(BuyerCenterPage.buyer_center_my_integral)

    def to_my_redpacket(self):
        self.click(BuyerCenterPage.buyer_center_my_redpacket)



